
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>食尚购App · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="2.门店EDI.html" />
    
    
    <link rel="prev" href="0.文档.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    引言
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../html/0.html.html">
            
                <a href="../html/0.html.html">
            
                    
                    HTML
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../html/1.html整体结构.html">
            
                <a href="../html/1.html整体结构.html">
            
                    
                    HTML整体结构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../html/2.html代码格式.html">
            
                <a href="../html/2.html代码格式.html">
            
                    
                    HTML代码格式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../html/3.html内容语义.html">
            
                <a href="../html/3.html内容语义.html">
            
                    
                    HTML内容语义
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../css/0.css.html">
            
                <a href="../css/0.css.html">
            
                    
                    CSS
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../css/1.css书写规范.html">
            
                <a href="../css/1.css书写规范.html">
            
                    
                    CSS书写规范
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../css/2.css命名规范.html">
            
                <a href="../css/2.css命名规范.html">
            
                    
                    CSS命名规范
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../js/0.javascript.html">
            
                <a href="../js/0.javascript.html">
            
                    
                    JavaScript
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../js/1.javascript-es6.html">
            
                <a href="../js/1.javascript-es6.html">
            
                    
                    es6
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../图片规范/图片规范.html">
            
                <a href="../图片规范/图片规范.html">
            
                    
                    图片规范
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../前端研发流程/前端研发流程.html">
            
                <a href="../前端研发流程/前端研发流程.html">
            
                    
                    前端研发流程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../项目/0.项目.html">
            
                <a href="../项目/0.项目.html">
            
                    
                    项目
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../项目/1.食尚购.html">
            
                <a href="../项目/1.食尚购.html">
            
                    
                    食尚购App
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="0.文档.html">
            
                <a href="0.文档.html">
            
                    
                    文档
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.8.1" data-path="1.食尚购.html">
            
                <a href="1.食尚购.html">
            
                    
                    食尚购App
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="2.门店EDI.html">
            
                <a href="2.门店EDI.html">
            
                    
                    门店EDI
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3" data-path="3.掌中宝.html">
            
                <a href="3.掌中宝.html">
            
                    
                    掌中宝
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.4" data-path="4.食尚购小程序.html">
            
                <a href="4.食尚购小程序.html">
            
                    
                    食尚购小程序
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >食尚购App</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h3 id="1&#x98DF;&#x5C1A;&#x8D2D;app&#x5FAE;&#x4FE1;&#x6388;&#x6743;&#x767B;&#x5F55;&#x529F;&#x80FD;">1.&#x98DF;&#x5C1A;&#x8D2D;APP&#x5FAE;&#x4FE1;&#x6388;&#x6743;&#x767B;&#x5F55;&#x529F;&#x80FD;</h3>
<pre><code>// res&#x4E3A;&#x5FAE;&#x4FE1;&#x6388;&#x6743;&#x6210;&#x529F;code,&#x6B64;&#x65B9;&#x6CD5;&#x96C6;&#x6210;wechatInfo,&#x6388;&#x6743;&#x6210;&#x529F;&#x540E;&#x4F1A;&#x8C03;&#x7528;&#x5FAE;&#x4FE1;wechatInfo&#x63A5;&#x53E3;
window.$fxCordova.weixin.login().then(function(res){
})
</code></pre><h3 id="2&#x98DF;&#x5C1A;&#x8D2D;app&#x5FAE;&#x4FE1;&#x5206;&#x4EAB;&#x5C0F;&#x7A0B;&#x5E8F;&#x529F;&#x80FD;">2.&#x98DF;&#x5C1A;&#x8D2D;APP&#x5FAE;&#x4FE1;&#x5206;&#x4EAB;&#x5C0F;&#x7A0B;&#x5E8F;&#x529F;&#x80FD;</h3>
<pre><code>/*
 * &#x5FAE;&#x4FE1;&#x5206;&#x4EAB;&#x5C0F;&#x7A0B;&#x5E8F;
 * @param path[str]       &#x5C0F;&#x7A0B;&#x5E8F;&#x9875;&#x9762;
 * @param title[str]   &#x6807;&#x9898;
 * @param imgUrl[str]       &#x7F29;&#x7565;&#x56FE;
 */
var data = {
    path:&apos;/pages/goodsDetail/goodsDetail?type=wx&amp;goodsId=&apos; + this.paramId.get(),
    title:this.title.get(),
    imgUrl:this.shareImg.get()
}
window.$fxCordova.weixin.shareMini(data).then(function() {
    // &#x5206;&#x4EAB;&#x6210;&#x529F;
})
</code></pre><h3 id="3&#x98DF;&#x5C1A;&#x8D2D;app&#x5FAE;&#x4FE1;&#x5206;&#x4EAB;page&#x529F;&#x80FD;">3.&#x98DF;&#x5C1A;&#x8D2D;APP&#x5FAE;&#x4FE1;&#x5206;&#x4EAB;page&#x529F;&#x80FD;</h3>
<pre><code>/*
 * &#x5FAE;&#x4FE1;&#x5206;&#x4EAB;page
 * @param title[str]   &#x6807;&#x9898;
 * @param imgUrl[str]       &#x7F29;&#x7565;&#x56FE;
 * @param webpageUrl[str]       &#x9875;&#x9762;url
 */
var data = {
    webpageUrl:&apos;https://fx-ygyl.pek3a.qingstor.com/sharego/needwebapplet.jpg&apos;,
    title:this.title.get(),
    imgUrl:this.shareImg.get()
}
window.$fxCordova.weixin.sharePage(data).then(function() {
    // &#x5206;&#x4EAB;&#x6210;&#x529F;
})
</code></pre><h3 id="4&#x4FDD;&#x5B58;canvas&#x56FE;&#x7247;&#x5230;&#x76F8;&#x518C;&#x529F;&#x80FD;">4.&#x4FDD;&#x5B58;canvas&#x56FE;&#x7247;&#x5230;&#x76F8;&#x518C;&#x529F;&#x80FD;</h3>
<pre><code>/*
 * &#x4FDD;&#x5B58;canvas&#x56FE;&#x7247;&#x5230;&#x76F8;&#x518C;
 * @param canvasId[str]   canvasid
 */
window.$fxCordova.image.canvas2Image(&apos;firstCanvas&apos;).then(function() {
    // &#x4FDD;&#x5B58;&#x6210;&#x529F;&#xFF01;
})
</code></pre>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="0.文档.html" class="navigation navigation-prev " aria-label="Previous page: 文档">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="2.门店EDI.html" class="navigation navigation-next " aria-label="Next page: 门店EDI">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"食尚购App","level":"1.8.1","depth":2,"next":{"title":"门店EDI","level":"1.8.2","depth":2,"path":"文档/2.门店EDI.md","ref":"文档/2.门店EDI.md","articles":[]},"previous":{"title":"文档","level":"1.8","depth":1,"path":"文档/0.文档.md","ref":"文档/0.文档.md","articles":[{"title":"食尚购App","level":"1.8.1","depth":2,"path":"文档/1.食尚购.md","ref":"文档/1.食尚购.md","articles":[]},{"title":"门店EDI","level":"1.8.2","depth":2,"path":"文档/2.门店EDI.md","ref":"文档/2.门店EDI.md","articles":[]},{"title":"掌中宝","level":"1.8.3","depth":2,"path":"文档/3.掌中宝.md","ref":"文档/3.掌中宝.md","articles":[]},{"title":"食尚购小程序","level":"1.8.4","depth":2,"path":"文档/4.食尚购小程序.md","ref":"文档/4.食尚购小程序.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"文档/1.食尚购.md","mtime":"2020-07-02T00:29:57.047Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-07-02T00:51:07.028Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

